﻿using System;

namespace PotatoSoft
{
    namespace VOCTS
    {
        namespace Workbench
        {
            public class WorkbenchImage
            {
                public Int32 ImageID { get; set; }
                public string ImageName { get; set; }
                public byte[] ImageData { get; set; }
                public int ImageWidth { get; set; }
                public int ImageHeight { get; set; }
                public int ImageWidthStep { get; set; }

                //FKs and Reference properties/value objects
                public int ExaminationID { get; set; }
                private Examination _examination;
                public Examination Examination
                {
                    get { return _examination; }
                    set
                    {
                        _examination = value;
                        //explicit relationship fixup
                        _examination.AddImage(this);
                    }

                }

            }
        }
    }
}
